{{ template "layout/base.html" . }}

{{define "head"}}
<title>OpenVPN - 配置</title>
{{end}}

{{define "body"}}
<div class="box box-primary">
  <div class="box-header with-border">
    <h3 class="box-title">修改配置</h3>
  </div>
  <!-- /.box-header -->
  <!-- form start -->
  {{template "common/alert.html" .}}
  <form role="form" action="{{urlfor "SettingsController.Login"}}" method="post">
    <div class="box-body">
      <div class="form-group">
        <label for="name">Profile</label>
        <input type="text" class="form-control" id="Profile" disabled
          value=" {{ .Settings.Profile }} ">
      </div>

      <div class="form-group">
        <label for="name">OpenVpn 管理地址</label>
        <input type="text" class="form-control" id="MIAddress" name="MIAddress" placeholder="Enter address"
          value="{{ .Settings.MIAddress }}">
      </div>

      <div class="form-group">
        <label for="name">OpenVpn 管理网络类型</label>
        <input type="text" class="form-control" id="MINetwork" name="MINetwork" placeholder="Enter network name"
          value="{{ .Settings.MINetwork }}">
      </div>

      <div class="form-group">
        <label for="name">服务器地址（外部）</label>
        <input type="text" class="form-control" id="ServerAddress" name="ServerAddress" placeholder="Enter server address"
          value="{{ .Settings.ServerAddress }}">
      </div>

      <div class="form-group">
        <label for="name">配置文件路径</label>
        <input type="text" class="form-control" id="OVConfigPath" name="OVConfigPath" placeholder="Enter config path"
          value="{{ .Settings.OVConfigPath }}">
      </div>

      {{ .xsrfdata }}
    </div>
    <!-- /.box-body -->

    <div class="box-footer">
      <button type="submit" class="btn btn-primary">保存并应用</button>
    </div>
  </form>

</div>
<!-- /.box -->
{{end}}